﻿using System;
using System.Diagnostics;

namespace ServerUtils
{
    public class LogEventArgs : EventArgs
    {
        private readonly string message;
        private readonly EventLogEntryType type;

        public LogEventArgs(EventLogEntryType type, string message)
        {
            this.type = type;
            this.message = message;
        }

        public LogEventArgs(EventLogEntryType type, string format, params object[] args)
            : this(type, string.Format(format, args))
        {
        }

        public EventLogEntryType Type { get { return this.type; } }

        public string Message { get { return this.message; } }
    }
}
